layui.use(['form', 'table', 'layer', 'upload','xmSelect'], function () {
    var $ = layui.jquery,
        form = layui.form,
        xmSelect = layui.xmSelect,
        upload = layui.upload;


    form.on('submit(excelToolFront)', function (datas) {
        uploadImg(upload);
    });
    /** 编辑窗结束 */

});

/**上传头像*/
function uploadImg(upload){
    upload.render({
        elem: '#analysisExcel' //绑定元素
        , url: dl_coder_url.tool_excel[0] //上传接口
        ,
        headers: {"token": headerMap.token},
        field: dl_coder_url.tool_excel[2],
        force: "JSON",
        //上传展示图片
        done: function (result) {
            console.info(result)
             }
        , error: function () {
            //请求异常回调
        }
    });
}


